/**@Title   MyTest.java
 * @Package com.gong.learn.thread.sailTicket
 * @Desc    
 * @Author  GongWenhua
 * @Date    2017年3月27日 下午4:56:30
 * @Version 1.0
*/
package com.gong.learn.thread.sailTicket;

public class MyTest {
	public static void main(String[] args) {

		Ticket2 ticketRunnable = new Ticket2();
		Thread t1 = new Thread(ticketRunnable);
		Thread t2 = new Thread(ticketRunnable);
		Thread t3 = new Thread(ticketRunnable);
		t1.setName("购票者1");
		t1.start();
		t2.setName("购票者2");
		t2.start();
		t3.setName("购票者3");
		t3.start();

	}
}
